Fixed bug with inherited Application