Fix #187 alternate buffer problem