Fixed bug with current date initialization