fixed updating when visible bug