BUG: Fix save and publich type error