Fix flags and strings errors
Use Slice() instead of into_maybe_owned()