Fixing castle wars bug