fixing map bug