Fixed creation of global variables where_clause and transform_key