Fixed nesting error

previous code created nesting errors in the haml