ape: fixed cue regression and crash on resume