Fixes crash when using map server cmd