small buffer fix