fix widget insertion