Fixed a bug. Some code should only be removed if LOTSAMEM is defined.