avoid error if $app not exists