Fixed reference to sm.isrotated
Fixed issue with argument redundancy