code submit.bug fixes

potomacframework for flex