Fixed the autoindenting problem which was driving me crazy