fixed bug where if you pause it clobbers things