Fixed dereference errors.
Renamed deprecated HashMap.find() to get().