fixed an issue with deleting maps.
Merge pull request #22 from lordnull/map-delete

Fixed deleting maps