Fix readline hack... poorly