Fixes deploy permissions