parse global vars before segment vars, fix #8