Fixed console exception