correction in setting container attributes