fix detect parts