Fixed a console error