Fixing .flex bug