bug fix for settings not sticking due to typecast