Flags has returned array.  Fixed type to be first element.