Fix for StringBuffer update