fixed delete tab bug