That's because you have it in a loop take it out of the loop and it will work.