fixed another compiler warning
revert this if this commit causes regression of dimensions