bugfix for resources