fixes a bug with friendly fire