Fixes TypeError for a non-buffer interface.