fix some figure parse problems.