Fixed bug for nhist when there is only one row.