fixed bug that all messages are obtained by /messages/search API.