Fixed for Linux compatibility