Change process flow

Fix process flow as noticed by @wilsonge on https://github.com/joomla/joomla-cms/pull/3448