corrected compiler warning