Fixed error on Mavericks