Fixed some Mac issues.