fixed "value is required" bug