fix darwin regression