Fixed recording in linux