fix paths when generating smaller versions