Fix incorrect ex for mainOverrides object syntax

If that behavior is the desired one.