data.py: fix frametype bug for X0 channels