osx: Fix conditional rendering