Fixed issues related with last-viewed node