Made a bug fix with removing a dictionary which is still connected with other materials