Allow for missing classes during replacement