Fixed one more use of "has_key"