fixed bug where the nn cell was also zero