fixing submat type check
Merge branch 'master' of https://github.com/Maruf789/PLT