Fixing the threads used while rendering