fixing error with report view