Why is this necessary? It feels like this has a change of interfering with something (e.g. modals) at some point.