Fix rebound and wall sticking bug