fixes issues when re-rendering with removed data