Removed bad stack check code causing invalid assertions