Fix close X showing up for remote dialogs