fix compatibility issue.

Signed-off-by: dannygod <dannygodii@gmail.com>