Added some code to solve the map loading ProgressDialog error