Fixed a bug in the arguments to flagdata