fix for ruby 2.1, define_method returns :symbol