Fix nesting error