fix cpu spike on OSX; ref #71

works for me. 

ref #71.