Fix server crash with capes