correction bug appcontroller