Only add fix for remote shell buffers
Function docstring