Fixed start/end position in do_complete