fix bug for space
fix rvm error