[PATCH 12/13] Fix some bugs in custom.py.