Fix flex dir