fixed the break/continue validation