Stack overflow on Check?