fix compatibility issue on linux