some small bugs fixed when certificate app