Very minor fixes in type comparison and missing semicolumn