Fixed problem of elapsed field in empty database.