fix query selector error if node ID contains brackets