fixed bug with ripple effect