fix appointment when num_attempt is not initiate properly
version v2.14.2
Merge branch 'hotfix/v2.14.2'