Fix crash when debugging in linux.