Fixed issue where quick alt-tabbing would break the ui interaction.