Fixed errors in ding entity id builder