fix msgs_fetching bug