Fix for mavericks.