fix template creation bug, remove cookie info