Fix minor bug in detection plots