Wont crash now if generate report whilst open