Corrected a bug.