Fixed a bug in nuve.py