fixed some implicit conversion warnings