modify bug about scope in irbuilder