I've got this eventreceiver that fires after an item has been added to a list.  

The eventreceiver creates a subsite from a template I created myself.   
The only
problem is, every first time I try to add a listitem (so actually create a subsite), I have to wait +40 secs and the subsite wont be created.   
But the next +100 times I try to add the subsite after my first attemt, every site has been created succesfully.  

In other words, in this situation my customers have to create a "bad" subsite first before they can actually create a working subsite.   
I'm using SharePoint online. Does anybody know how I can fix this problem.  

Regards,  

Fabian