Fixed stoplight detection to properly detect transitions