fixing card replacement failure