fix checkout bug - was moving the old version rather than copying