fixed warnings about conversion