change justOne to safe per Stack Overflow answer at
http://stackoverflow.com/a/23335020/103081