Fix history issue when loading SPD files