fixed that ruddy template thing so it works when you add the first date