fixed card drawing crashes