fix ibis.py