fix post persist behaviour