Fixed a glaring bug in how sizes were calculated