Fixed issue 8034
http://hercules.ws/board/tracker/issue-8034-map-crash-scripts/