Fixed whitespace in query sub