fixed literal class memory management.