fixed end_pass bug in para_active