Fixed chat tab closing