fix reverse in linux