detection width fix