Fixed #81
I don't understand why distinct is getting set as null. Ensuring it can't happen
on report creation. Embarrassing hacky fix :(