I had this trouble not too long ago. I was using learned IR codes, which was the problem thanks to others' help on this site. If you're using learned codes, that's most likely the problem, and you should either re-learn them and try again or use a device from the database that's closest to the one you're trying to control.
More information
here.