fix: mistake when passing empty matrices