Fix error when render multiple files