Working on issue regarding resetting after sending a message