Fixed code warnings