bug fix for orthodb to prevent duplicate entries