fix autolayout issues for osx