Small bugfix to the compare_keys fix.