fixed Linux bugs