fixed a couple more integer casting warnings