closed #5005, fix visible and enable issue