Bugfix target id undef (GH #16, #17).