fixed read bad message error