* fixed some implicit castings