bugfix for async