Fixed log in template