fixed a problem with a colon at the end of the buffer, that occure in a syntax error on ie <= 9