Minor bugfixes in application.