fixes overwriting template