minor performance fix