fixing folder permissions
handle the case when team leader doesn't exist