fixed only-one bug