fix some troubles and disable Debug tab