Fixes how resizing coordinates are computed