fixed the performance stutter issue