fixed minor error bug