fixed issue with last viewed date