Fixed for linux compatibility