fixed multiple pulse template problem