panorama: fixed undef result