fix regression which chmodded the file