Changed config order to prevent error with credentials