fixed app reference bug