Fixed bug in animation system. Fixes #19