fixing bouncing