fix flex