Added to-fix to main.lua
Fix and make permissions consistent