diff --git a/base/latest.Dockerfile b/base/latest.Dockerfile
index 34048bf..776f2b7 100644
--- a/base/latest.Dockerfile
+++ b/base/latest.Dockerfile
@@ -242,13 +242,8 @@ RUN export PIP_BREAK_SYSTEM_PACKAGES=1 \
nbconvert \
python-lsp-server[all] \
## Fix https://github.com/jupyterhub/jupyter-server-proxy/issues/445
- && pyFile="$(echo /usr/local/lib/python*/*-packages/jupyter_server_proxy/handlers.py)" \
&& sed -i 's/subprotocols=self\.subprotocols/subprotocols=self\.selected_subprotocol/g' \
- "$pyFile" \
- && if $(grep -q subprotocols=self.selected_subprotocol "$pyFile"); then \
- sed -i '/def select_subprotocol/{:a;N;s/\n[[:blank:]]\+.*//;ta;!P;D}' \
- "$pyFile"; \
- fi \
+ /usr/local/lib/python*/*-packages/jupyter_server_proxy/handlers.py \
## Include custom fonts
&& sed -i 's|||g' /usr/local/share/jupyter/lab/static/index.html \
&& sed -i 's|||g' /usr/local/share/jupyter/lab/static/index.html \