fixed getProfile in maps.js