Fixed unused value compiler warning