Fixed query and contents of hash