fix duff detection