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