Fixed map loading error. Closes #19.