Fixed slip-up due to sorting