Fix fatal error on insert quiz entity.