Fixed a bug in big Lie queries due to wrongly saving the query to file.