Fix Nilclass error

Change @AppSettings to AppSettings