fix readline patch