workaround hyperspy (maybe?) bug