Fixed index error not saing last tablespace