Fixing the 'values not allowed' issue