fix bug for lib.utils.py

fix bug for lib.utils.py