Fix bug with Key equals impl