[constraint scheduler] fixed possible segfault;