- fixed some type conversion warnings