fix issue #596

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