fix tabcloser bug (cannot close tab zero)