fixed literal and resource problems