Fix the returns from foreign rules