Missed int casts and a list -> set conversion