Fixes a logical error.
Really fixes the logical error.