bugfix

added nHeight declaration - non-reference error without using
pindexLast.