Bug fix on reports controller