Fix Classes loop template