Fix for broken animations with FF31 update

See issue #154