Fix a flex entity.