fixed multi-threaded rendering bug #54