fixed the bounce effect