comparator's are very confusing. you will have to use comparators a certain way for them to do their job. you put down a comparator, 1 redstone to the left, 1 above that, then one to the right of that and then it should work if you connect redstone from the top one to your machine. By doing this your machine instead of only going once it goes multiple times.