bugfix for app injection