Fix use deprecated attributes uid and gid