Fix break elements issue.

Code for issue #62