Fixed instance variable referencing from the AppDelegate