fixing template plugin