fixed few complilation warnings