Fix a bug affecting rails startup