fixed animate function
fixed toggle animate