simpleapplication, simpleapplication-deploy: small but essential fixes