Fixed the bugs of showing check mark on the form