fixed linux compatibility