Fixed used map bug