fixing date assignment