Fixed #1739. Darnit mongoose.