fix for branch_dir