fixed bug that happened due to the asynchronous communication