Fixed some compilation issues caused by wrong data types.