Help with hittest

hi i have a game and kind of like mario
the ground hittest words and the side wall hit test works but the box once u jump ontop of it it shoots you backwards :o what can i do