Fix nil issue on pins for buffers