Fixing 'not connected to field' errors