Fix rails version error