fixed a bug in producer template