Correctly generating map controls