fixing template issue