fix deprecation warning on get()

get on HashMap is now deprecated and generates a warning