Fixed undefined bdate error.