Fix for date validation (#169)