fix before save