set_path bugfix