trying to fix gmaps bug with on.('open') function