hack to prevent asynchronous issues.