Bug fixed - now getting settings correctly