Fixed map events

Adjusted a few variables and added a lowercase version of the extension.