fix issue with /a?x (no val), closes gh-1