fixed annoying bug

had commented sprintf statement