fix to increase performance
merge blas_fix commit by hand