fix console readline