fix dispose context