Change incorrect use of set to create