Fix methods autogerneration