fix bug that rails can not start