Temporary workaround to solve segmentation fault.