Corrected maAllowedValues functions in model.js