Bugfix: change order of checkconfiguration()