fix rails loading.