Fixed error: undefined variable in Report