Fix Linux compatibility issue