Fix to createContainer method