fixing pit object bugs