correcting size if not a power of 2