generate_accessor bug fixed.