Fixed bug where getId function looked up wrong Id