Topic: Desfire EV1:libfreefare cannot authenticate in new created apllication

I can authenticate with picc master key of any type, but after creating application and selecting it i cannot authenticate into this application. Code pastebin.com/YBgTeFb2 .

Thank you for help