Fixes class import when hidden required fields are present