fixed bouncing issue