[bugfix]: changed function prepare_filter_query