Fix #188 alternate buffer problem