Fix #224 hide buffer problem