fixing card position bug