small code change.
fix bottom and right animation.