fixed removePane issue