fixed bug in rails run