fixed linux compatibility.