Fix bug with readline not being resumed