fixed tab completion breaking on escapes