fixed bug with partial render