BP: fixed saving graph direction