bug fix when dates are invalid; center table