fixed typo in nn O surface loop