fixing multithreading with SHVC