fixed for R from source