fix required fields