Fixed ActiveSupport & syntax errors

At random, activesupport:autoload would fail, changed the requirements
to properly load activesupport. In addition, some tabs were incorrect,
and there was an end missing.