Fixed bug with Date instantiation.