bugfix in wise.py