Fixes rowmatrixlist