isBuffer fix