[fix] select_context bug