Fix autoclose form in category modal