fixed issue with break not working properly.

Signed-off-by: Chris Jones <chris@jonezy.org>