Fixed bug in damageto permission of protection.