fix for sometimes empty results