Fixed bug in hiding message input