bugfix: debug undefined in inde.js