Trying to fix rails