panorama: fix loading data when there is no data
panorama: make sure offset is a number