fix extra semi on if statment