Moved the fg-number parsing below the fg-definition parsing.