Fixing assertions, locating source of relative matrix issue