diff --git a/app/views/home/show.html.erb b/app/views/home/show.html.erb
index 611e7f6..5bdfd33 100644
--- a/app/views/home/show.html.erb
+++ b/app/views/home/show.html.erb
@@ -7,7 +7,7 @@
<% @line_data.each do |stop| %>
<% stop_options = { 'data-id' => stop[:id], 'data-lat' => stop[:lat], 'data-lon' => stop[:lon], 'data-others' => stop[:others].join(','), 'data-accessible' => stop[:accessible] }
- stop_options['data-selected'] = 1 if stop[:id] == @selected_stop %>
+ stop_options['data-selected'] = 1 if stop[:id] == @selected_stop_id %>
<%= link_to stop[:name], stop[:schedule_url], stop_options %>
<% if stop.has_key? :times %>
<% stop[:times].each do |trip| %>