fixed tab closing