fix get orderref crash