fixed "remove date range" bug