bugfix for Mountain Lion