fixed bug in nl.hash