Fixed bug for stub creation.