Fixed console error