Fixed bug affecting prior restictions (removed the extension in the argument of str2func).