fix resourceFlow