fixed bug when creating different applications