fixed nif loading