Fix template tags rendering for trek relationships