fixed for mavericks