fixing data source query with param