Fix the frame debug when frame_end is None