Functionality for cloak of protection fixed