fix application class errors