deal with nil date