Fix blocking of processes