secureApp bug fixes