fixed stupid detection mistake