TypeError InitCustomControls fixed