add checks in CompositorMap, should fix crash