Fix issue with and simplify methods to set dimensions to size