fix IFS particle code