Fix issue with session options in view task