Fixed waitset bug in waitset examples