Fix self.window.run_command undefined in WindowCommand