Fixed date issue that was causing crash