Minor fixes in application

This pr fixes a couple of minor issues in the application.py