minor perfomance fix