Fixed checking if the applications were running