fixing set_pnexpires