Add missing spaces before "}"