Fixed issue where animation starts on wrong frame