[[ RefactorSyntax ]] Fixed queryRegistry leaving null chars