fixed card flipping problems