Fix bug session Appcontroller loss