Fixed problem with guessing dimension sizes.