should clear global vector before replay