Move spacer inside IF