fix query in dolayer