Fix incorrect nesting