Ignoring invalid hash keys