fixing a bug in buffer switching
no summary available
Initial rev