Fix sub mat

make sure the submat interpretation match the function signature