auto buffer scan bug fixed