Fix bounce animation at limits