fix in models function getMethod for better order edit