fix console issue