Minor logic change