fixed annoying JS cosole  error