fix console compatibility