fix raise bug in customize.py