Fix bug with js console message