Revert "Fixed a bug in new_message() function."

This reverts commit 7054f1ca2305d0022ed3d9dcea4afcd28bf80632.