mapper: Fix flags when creating new maps