Fix failed ThumbContext initialization.