bug fix for linux env