Fixed broken function in Buffer class.