Fix get_key_remotes in server