Fixed bug where removing a texture did not remove texture group by texture entry.