fixed problems with knitr compilation