Changed assert to QMP_assert