Misc bugfixes

This is mostly cleaning up the mess I created with other refactoring

Merge request reports

Loading