Fix linux compatibility issue