Fixed reports not displaying

A function was not called and an if else statement had a missing bracket