fixes #19 inserting label in query correctly