Fixed pop-up error for adding new date