Fixed a bug with nI