Fixed some bugs and animation.