Error opening flex