Corrected bug on map directive