Fix to pass share directory as name param instead of name.