Fixed issue with obj_dir.