fixed serialization problem on main block