fixed app self-referencing