osx: Fix for terminal error