Fix order of parsing.

Signed-off-by: Robert Xu <robxu9@gmail.com>