fixed report functionality