Fix with-profile ordering

Breaks on 1.3.