fixed bug

Signed-off-by: Ben Hawker <hawker.ben@gmail.com>