fixed bounce bug