Origin of hysteresis in thin NdCo films