Fixed protection bug