fixed bug in partial rendering