Fixed update check and fixed faulty permission