Fixed issue with chmod.