Fixed linux compatibility