bugfix for resource management