Fix Linux compatibility bug