Further improve create_frame_xic patch