fix goal index parsing