fix for resave on session