Fixed console error on mac