Fix for StringBuffer updates