fixed some minor virtual memory problems