Fixed two small errors

Signed-off-by: Thomas Hodgson <thomas.hodgson@gmail.com>