fixed silly bug in reports backend (an original gazelle stupidity)