small performance fix