fix template to make it working