Fixed complier warnings.