Handling case when only one template left