fixed wrong class reference in generation of application callbacks in main methods