fix continue bug + code style