strange console.log not called