Fix close for tabs