Fix base dir