Fixed bug with nHeight declaration