fixing bug in form messaging system