fixed minor logic issue