remote dir fix