Fixed issue of invalid value gets update even if attribute has allowed values property.