fix custom map bug