fix console that caused error