Fixed another bug caused by stringasfactors  = FALSE