Fixed problem that caused map elements to disappear.