bugfix

fixed a bug because the console.log removement removed important lines
too o.O