Fixed console.debug problem