Fixed issue with wrong key being used.

Signed-off-by: Richard Hancock <rjhancock@me.com>