fix tab move problem