fixed obj check in map on line 31