Fix glitch card resizing issue