fix some bugs in contest.vim