Fix getId() method

Signed-off-by: Adam Engebretson <adam@enge.me>