Fix bug. Change the way of generate setter method. Makes it same with IDE.