Fixes errors in leavesettings