Bug in the time of value fetching

Signed-off-by: Mohamad Gebai <mohamad.gebai@polymtl.ca>