Custom Master Page and default page are not being set

Jan 16, 2013 at 12:03 PM

We have custom master page and custom default welcome page. We wrote site definition for our site, we include your Mund publishing feature in onet.xml, but when we create our site by using site definition, the Mond Master page and its default page is being set and our default page is not even being added in pages library. 
We wrote code to set master page in feature receiver of master page but it is not working. But it is working if we use sharepoint default publishing feature.
Can you please suggest any solution for this.