Fixed functionality bug: Error buffer initialization out of bounds