Fixed extend method of Application class