Fixed aserts in in bug23843 method