Fixed var check failing