corrected theme category number in loop