Finally fixed app attach