Fixed minor bug, needed to explicitly add a focus attribute to Application.