Fix a bug in ncview