fixed wrong placement of forloop.first in template