fixed a bug that would sometimes prevent turrets from firing