fix for R 3.0.3