Fix blocking environment