BugFix wrong declaration order for variables in settings