fix permissions error introduced by previous patch