fix bug where flash[:errors] errors out if it's a string