fix for undefined settings variable error