Fix dependency loading order for checkbox