Bugfix to dynamic reports