fixed tab animation bug