select inner content first

do not select the braces at first
fixed a bug btw