fix error on context reload