fixes #17279 I do not like the use of setTimeOut, but have not found a better way, and it does solve the problem, had an issue with the merge of the pull request, so had to re-do the change and commit it again here.