fix code from linux