fix the warnings in minperm.f90