Dirty hack to avoid exceptions when nmen is 1.
Code cleanup.
Code cleanup.