fixed issue with IR when not using global waitOn