fix buggy Rails init