Fixed file premissions on update

chmod files and folders to 777