Fixes #6229

Fixes https://github.com/Baystation12/Baystation12/issues/6229