Fix .Rprofile bug