Fixed some warninngs.