Fixed issue with DialogBoxIsNotActive