Fix base directory