fix message model due to gem upgrade