Fixed wrong timestamp calculation to fetch