fixing field clear problem