Can confirm this takes care of the bug I was seeing on macOS.

Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>