fixed bug in mainappdepends