Fix orient_flags to be optional.