Stubs generator fix constants definition