bugfix for backward compatibility with queryWriter