properly set the animated flag