Fixed error when calling CMapirMOOSApp