Fix potential bug if library doesn't exist.