fixed bug from Yosemite upgrade