That should fix it
https://github.com/discourse/discourse/commit/addd58d961639f550134e73e152833dd481bb5f4