Elements unload even though they should be visible