Fix Services template row generation bug on forloop.last