Fixed: wrong condition in CPApplication