block event loop fix