use disable_refs (bug 919148)
Merge pull request #1181 from andymckay/919148

use disable_refs (bug 919148)