Fixed crash in categories report