fixed layout.erb problem