Sometimes, adding braces does the trick. I didn't test this, but something like this might work:
The way you fixed it is also fine--just something to keep in mind in case it comes in handy sometime.
Save up to $96 at Dreamhost with ALMOST97 promo code (I get $1).
Or save $97 with THEFULL97.