bug in default query