Fixed bug with fits viewer not updating when unloading datasets