fix continue statement not taking effect

Signed-off-by: You-Sheng Yang <vicamo@gmail.com>