Bugfix: crash when dim data comes after events