Added error class to container when overwritten.