Improve map loading assertion