Fix buffer limits on remote commands