bug fixes.

potomacframework for flex.
Revert "bug fixes."

This reverts commit 84700abe81d9157821a3d669d6a289ccd4fae5fc.