fix paths on auto publish