fix: "q.i" must return $ when i is out of bounds