memory overload bug fixes