fixbug: save not success when switch layout