animator func fix