Quick fix for charts_controller.rb