Fixing bug about self-closing/milestone elements. Fixes #3