fix tab not working bug