How to prevent bounce issue