Fix method names generation