fix bouncing errors