Fix permission for direct download