Fix a compile issue caused by a warning