bug in disposing widgets