Fix for module widget not enabling after error
Fix for bug where notarget layout had invalid targets