Fix Rails version issues