fixed mistaken bug