fixbug: register check and category spell