The verb to argue has an e at the end but this is dropped in the noun. Argument.
Hierarchy follows the i before e (except after c) rule.
Receive has the e before the i because they follow a c.
Foreign breaks the i before e (except after c) spelling rule.