fix console problem