fix from corbin_dunn.  Now works in 10.9 also