fix crash before date range assign