Fix template and delete from config extra lines