Corrected compiler warnings