fixed a bug in reports