Fix for OSX sliding config dialog.
Fix stupid bug with function scope.