Fix typo of using #to_s instead of #to_sym