fix issue #597

Signed-off-by: wendal <wendal1985@gmail.com>