Fixed broken application installation

Fixes #1114