Fixed types in read_cb