App: Variable reference bug