fix ngFactory