fixed a bug in the contactgroup template