fix getInstanceFields