Fix bug with changing card width