fix console bug