fixed error in creating messages length