fix continue button behavior