fixed error in create_path