Fixed problems with running application